/**
 * @mbggenerated
 * @author kehui
 */
package com.mall.pojo;

import java.util.ArrayList;
import java.util.List;

public class PsItemExample extends BaseExample {
    /* @mbggenerated */
    protected String orderByClause;

    /* @mbggenerated */
    protected boolean distinct;

    /* @mbggenerated */
    protected List<Criteria> oredCriteria;

    /* @mbggenerated */
    public PsItemExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /* @mbggenerated */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /* @mbggenerated */
    public String getOrderByClause() {
        return orderByClause;
    }

    /* @mbggenerated */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /* @mbggenerated */
    public boolean isDistinct() {
        return distinct;
    }

    /* @mbggenerated */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /* @mbggenerated */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /* @mbggenerated */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /* @mbggenerated */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /* @mbggenerated */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /* @mbggenerated */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * 对应数据库表 ps_item
     *
     * @mbggenerated
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTitleIsNull() {
            addCriterion("title is null");
            return (Criteria) this;
        }

        public Criteria andTitleIsNotNull() {
            addCriterion("title is not null");
            return (Criteria) this;
        }

        public Criteria andTitleEqualTo(String value) {
            addCriterion("title =", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotEqualTo(String value) {
            addCriterion("title <>", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThan(String value) {
            addCriterion("title >", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThanOrEqualTo(String value) {
            addCriterion("title >=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThan(String value) {
            addCriterion("title <", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThanOrEqualTo(String value) {
            addCriterion("title <=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLike(String value) {
            addCriterion("title like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotLike(String value) {
            addCriterion("title not like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleIn(List<String> values) {
            addCriterion("title in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotIn(List<String> values) {
            addCriterion("title not in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleBetween(String value1, String value2) {
            addCriterion("title between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotBetween(String value1, String value2) {
            addCriterion("title not between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andYunpanUrlIsNull() {
            addCriterion("yunpan_url is null");
            return (Criteria) this;
        }

        public Criteria andYunpanUrlIsNotNull() {
            addCriterion("yunpan_url is not null");
            return (Criteria) this;
        }

        public Criteria andYunpanUrlEqualTo(String value) {
            addCriterion("yunpan_url =", value, "yunpanUrl");
            return (Criteria) this;
        }

        public Criteria andYunpanUrlNotEqualTo(String value) {
            addCriterion("yunpan_url <>", value, "yunpanUrl");
            return (Criteria) this;
        }

        public Criteria andYunpanUrlGreaterThan(String value) {
            addCriterion("yunpan_url >", value, "yunpanUrl");
            return (Criteria) this;
        }

        public Criteria andYunpanUrlGreaterThanOrEqualTo(String value) {
            addCriterion("yunpan_url >=", value, "yunpanUrl");
            return (Criteria) this;
        }

        public Criteria andYunpanUrlLessThan(String value) {
            addCriterion("yunpan_url <", value, "yunpanUrl");
            return (Criteria) this;
        }

        public Criteria andYunpanUrlLessThanOrEqualTo(String value) {
            addCriterion("yunpan_url <=", value, "yunpanUrl");
            return (Criteria) this;
        }

        public Criteria andYunpanUrlLike(String value) {
            addCriterion("yunpan_url like", value, "yunpanUrl");
            return (Criteria) this;
        }

        public Criteria andYunpanUrlNotLike(String value) {
            addCriterion("yunpan_url not like", value, "yunpanUrl");
            return (Criteria) this;
        }

        public Criteria andYunpanUrlIn(List<String> values) {
            addCriterion("yunpan_url in", values, "yunpanUrl");
            return (Criteria) this;
        }

        public Criteria andYunpanUrlNotIn(List<String> values) {
            addCriterion("yunpan_url not in", values, "yunpanUrl");
            return (Criteria) this;
        }

        public Criteria andYunpanUrlBetween(String value1, String value2) {
            addCriterion("yunpan_url between", value1, value2, "yunpanUrl");
            return (Criteria) this;
        }

        public Criteria andYunpanUrlNotBetween(String value1, String value2) {
            addCriterion("yunpan_url not between", value1, value2, "yunpanUrl");
            return (Criteria) this;
        }

        public Criteria andYunpanPassIsNull() {
            addCriterion("yunpan_pass is null");
            return (Criteria) this;
        }

        public Criteria andYunpanPassIsNotNull() {
            addCriterion("yunpan_pass is not null");
            return (Criteria) this;
        }

        public Criteria andYunpanPassEqualTo(String value) {
            addCriterion("yunpan_pass =", value, "yunpanPass");
            return (Criteria) this;
        }

        public Criteria andYunpanPassNotEqualTo(String value) {
            addCriterion("yunpan_pass <>", value, "yunpanPass");
            return (Criteria) this;
        }

        public Criteria andYunpanPassGreaterThan(String value) {
            addCriterion("yunpan_pass >", value, "yunpanPass");
            return (Criteria) this;
        }

        public Criteria andYunpanPassGreaterThanOrEqualTo(String value) {
            addCriterion("yunpan_pass >=", value, "yunpanPass");
            return (Criteria) this;
        }

        public Criteria andYunpanPassLessThan(String value) {
            addCriterion("yunpan_pass <", value, "yunpanPass");
            return (Criteria) this;
        }

        public Criteria andYunpanPassLessThanOrEqualTo(String value) {
            addCriterion("yunpan_pass <=", value, "yunpanPass");
            return (Criteria) this;
        }

        public Criteria andYunpanPassLike(String value) {
            addCriterion("yunpan_pass like", value, "yunpanPass");
            return (Criteria) this;
        }

        public Criteria andYunpanPassNotLike(String value) {
            addCriterion("yunpan_pass not like", value, "yunpanPass");
            return (Criteria) this;
        }

        public Criteria andYunpanPassIn(List<String> values) {
            addCriterion("yunpan_pass in", values, "yunpanPass");
            return (Criteria) this;
        }

        public Criteria andYunpanPassNotIn(List<String> values) {
            addCriterion("yunpan_pass not in", values, "yunpanPass");
            return (Criteria) this;
        }

        public Criteria andYunpanPassBetween(String value1, String value2) {
            addCriterion("yunpan_pass between", value1, value2, "yunpanPass");
            return (Criteria) this;
        }

        public Criteria andYunpanPassNotBetween(String value1, String value2) {
            addCriterion("yunpan_pass not between", value1, value2, "yunpanPass");
            return (Criteria) this;
        }

        public Criteria andRuanjianUrlIsNull() {
            addCriterion("ruanjian_url is null");
            return (Criteria) this;
        }

        public Criteria andRuanjianUrlIsNotNull() {
            addCriterion("ruanjian_url is not null");
            return (Criteria) this;
        }

        public Criteria andRuanjianUrlEqualTo(String value) {
            addCriterion("ruanjian_url =", value, "ruanjianUrl");
            return (Criteria) this;
        }

        public Criteria andRuanjianUrlNotEqualTo(String value) {
            addCriterion("ruanjian_url <>", value, "ruanjianUrl");
            return (Criteria) this;
        }

        public Criteria andRuanjianUrlGreaterThan(String value) {
            addCriterion("ruanjian_url >", value, "ruanjianUrl");
            return (Criteria) this;
        }

        public Criteria andRuanjianUrlGreaterThanOrEqualTo(String value) {
            addCriterion("ruanjian_url >=", value, "ruanjianUrl");
            return (Criteria) this;
        }

        public Criteria andRuanjianUrlLessThan(String value) {
            addCriterion("ruanjian_url <", value, "ruanjianUrl");
            return (Criteria) this;
        }

        public Criteria andRuanjianUrlLessThanOrEqualTo(String value) {
            addCriterion("ruanjian_url <=", value, "ruanjianUrl");
            return (Criteria) this;
        }

        public Criteria andRuanjianUrlLike(String value) {
            addCriterion("ruanjian_url like", value, "ruanjianUrl");
            return (Criteria) this;
        }

        public Criteria andRuanjianUrlNotLike(String value) {
            addCriterion("ruanjian_url not like", value, "ruanjianUrl");
            return (Criteria) this;
        }

        public Criteria andRuanjianUrlIn(List<String> values) {
            addCriterion("ruanjian_url in", values, "ruanjianUrl");
            return (Criteria) this;
        }

        public Criteria andRuanjianUrlNotIn(List<String> values) {
            addCriterion("ruanjian_url not in", values, "ruanjianUrl");
            return (Criteria) this;
        }

        public Criteria andRuanjianUrlBetween(String value1, String value2) {
            addCriterion("ruanjian_url between", value1, value2, "ruanjianUrl");
            return (Criteria) this;
        }

        public Criteria andRuanjianUrlNotBetween(String value1, String value2) {
            addCriterion("ruanjian_url not between", value1, value2, "ruanjianUrl");
            return (Criteria) this;
        }

        public Criteria andRuanjianPassIsNull() {
            addCriterion("ruanjian_pass is null");
            return (Criteria) this;
        }

        public Criteria andRuanjianPassIsNotNull() {
            addCriterion("ruanjian_pass is not null");
            return (Criteria) this;
        }

        public Criteria andRuanjianPassEqualTo(String value) {
            addCriterion("ruanjian_pass =", value, "ruanjianPass");
            return (Criteria) this;
        }

        public Criteria andRuanjianPassNotEqualTo(String value) {
            addCriterion("ruanjian_pass <>", value, "ruanjianPass");
            return (Criteria) this;
        }

        public Criteria andRuanjianPassGreaterThan(String value) {
            addCriterion("ruanjian_pass >", value, "ruanjianPass");
            return (Criteria) this;
        }

        public Criteria andRuanjianPassGreaterThanOrEqualTo(String value) {
            addCriterion("ruanjian_pass >=", value, "ruanjianPass");
            return (Criteria) this;
        }

        public Criteria andRuanjianPassLessThan(String value) {
            addCriterion("ruanjian_pass <", value, "ruanjianPass");
            return (Criteria) this;
        }

        public Criteria andRuanjianPassLessThanOrEqualTo(String value) {
            addCriterion("ruanjian_pass <=", value, "ruanjianPass");
            return (Criteria) this;
        }

        public Criteria andRuanjianPassLike(String value) {
            addCriterion("ruanjian_pass like", value, "ruanjianPass");
            return (Criteria) this;
        }

        public Criteria andRuanjianPassNotLike(String value) {
            addCriterion("ruanjian_pass not like", value, "ruanjianPass");
            return (Criteria) this;
        }

        public Criteria andRuanjianPassIn(List<String> values) {
            addCriterion("ruanjian_pass in", values, "ruanjianPass");
            return (Criteria) this;
        }

        public Criteria andRuanjianPassNotIn(List<String> values) {
            addCriterion("ruanjian_pass not in", values, "ruanjianPass");
            return (Criteria) this;
        }

        public Criteria andRuanjianPassBetween(String value1, String value2) {
            addCriterion("ruanjian_pass between", value1, value2, "ruanjianPass");
            return (Criteria) this;
        }

        public Criteria andRuanjianPassNotBetween(String value1, String value2) {
            addCriterion("ruanjian_pass not between", value1, value2, "ruanjianPass");
            return (Criteria) this;
        }

        public Criteria andCodeIsNull() {
            addCriterion("code is null");
            return (Criteria) this;
        }

        public Criteria andCodeIsNotNull() {
            addCriterion("code is not null");
            return (Criteria) this;
        }

        public Criteria andCodeEqualTo(String value) {
            addCriterion("code =", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotEqualTo(String value) {
            addCriterion("code <>", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThan(String value) {
            addCriterion("code >", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThanOrEqualTo(String value) {
            addCriterion("code >=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThan(String value) {
            addCriterion("code <", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThanOrEqualTo(String value) {
            addCriterion("code <=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLike(String value) {
            addCriterion("code like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotLike(String value) {
            addCriterion("code not like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeIn(List<String> values) {
            addCriterion("code in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotIn(List<String> values) {
            addCriterion("code not in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeBetween(String value1, String value2) {
            addCriterion("code between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotBetween(String value1, String value2) {
            addCriterion("code not between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andVideoCodeIsNull() {
            addCriterion("video_code is null");
            return (Criteria) this;
        }

        public Criteria andVideoCodeIsNotNull() {
            addCriterion("video_code is not null");
            return (Criteria) this;
        }

        public Criteria andVideoCodeEqualTo(String value) {
            addCriterion("video_code =", value, "videoCode");
            return (Criteria) this;
        }

        public Criteria andVideoCodeNotEqualTo(String value) {
            addCriterion("video_code <>", value, "videoCode");
            return (Criteria) this;
        }

        public Criteria andVideoCodeGreaterThan(String value) {
            addCriterion("video_code >", value, "videoCode");
            return (Criteria) this;
        }

        public Criteria andVideoCodeGreaterThanOrEqualTo(String value) {
            addCriterion("video_code >=", value, "videoCode");
            return (Criteria) this;
        }

        public Criteria andVideoCodeLessThan(String value) {
            addCriterion("video_code <", value, "videoCode");
            return (Criteria) this;
        }

        public Criteria andVideoCodeLessThanOrEqualTo(String value) {
            addCriterion("video_code <=", value, "videoCode");
            return (Criteria) this;
        }

        public Criteria andVideoCodeLike(String value) {
            addCriterion("video_code like", value, "videoCode");
            return (Criteria) this;
        }

        public Criteria andVideoCodeNotLike(String value) {
            addCriterion("video_code not like", value, "videoCode");
            return (Criteria) this;
        }

        public Criteria andVideoCodeIn(List<String> values) {
            addCriterion("video_code in", values, "videoCode");
            return (Criteria) this;
        }

        public Criteria andVideoCodeNotIn(List<String> values) {
            addCriterion("video_code not in", values, "videoCode");
            return (Criteria) this;
        }

        public Criteria andVideoCodeBetween(String value1, String value2) {
            addCriterion("video_code between", value1, value2, "videoCode");
            return (Criteria) this;
        }

        public Criteria andVideoCodeNotBetween(String value1, String value2) {
            addCriterion("video_code not between", value1, value2, "videoCode");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }
    }

    /* @mbggenerated */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * 对应数据库表 ps_item
     *
     * @mbggenerated
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}